package com.dehui.traders.ui.viewmodle;

import android.content.Context;

import com.dehui.traders.ui.activity.AboutActivity;
import com.dehui.traders.ui.activity.LoginActivity;
import com.dehui.traders.ui.fragment.HelpFragment;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

/**
 * Created by hqq on 18.3.30.
 */

public class SystemViewModel extends BaseViewModel{

    public BindingCommand loginOnClickCommand = new BindingCommand(()->{
        startActivity(LoginActivity.class);
    });

    public BindingCommand aboutOnClickCommand = new BindingCommand(()->{
        startActivity(AboutActivity.class);
    });

    public BindingCommand helpOnClickCommand = new BindingCommand(()->{
        startContainerActivity(HelpFragment.class.getCanonicalName());
    });

    public SystemViewModel(Context context) {
        super(context);
    }

}
